#!/usr/bin/env python 
# -*- coding: utf-8 -*- 
# @Time    : 2024/9/29 15:59 
# @Author  : SumKids 
# @Site    :  
# @File    : 05_window_show.py
# @Software: PyCharm
# @Description:

import sys

from PySide6.QtWidgets import QApplication, QWidget, QPushButton, QLineEdit, QVBoxLayout

'''
        
'''


class MyWidget(QWidget):

    def __init__(self) -> None:
        super().__init__()
        self.setWindowTitle('示例窗口')
        self.resize(400, 200)

        self.btn2 = QPushButton('按钮')

        self.lineEdit = QLineEdit('hhhh')

        self.init_layout()

    def init_layout(self):
        layout = QVBoxLayout()
        layout.addWidget(self.lineEdit)
        layout.addWidget(self.btn2)
        self.setLayout(layout)


if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = MyWidget()
    window.show()
    app.exec()
